﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MaxLeaf.Common;
using MaxLeaf.DB;
using System.Data;
using MySql.Data.MySqlClient;
using System.Data.SqlClient;
 

namespace MaxLeaf.DAL.Web2SCP
{
   

    public class order_mainDAL : BaseDAL
    {
        public order_mainDAL()
            : base()
        {
            strSCPTableName = "order_main";
            strWebTableName = "order_main";

            strSCPKeyFieldName = "goods_attr_id";
            strWebKeyFieldName = "goods_attr_id";





            strFieldNames = "goods_id,attr_id,attr_value,attr_v_id";
 
        }

        public override int Add(DBAccess dbOrgWebReadCon, DBAccess dbOrgWebWriteCon, DBAccess dbCon, string strKeyValue)
        {         
            new Web2SCP.OeSalesOrderDAL().Add(dbOrgWebReadCon, dbOrgWebWriteCon, dbCon, strKeyValue);
            return 1;
        }


        public override void Delete(DBAccess dbOrgWebReadCon, DBAccess dbOrgWebWriteCon, DBAccess dbCon, string strKeyValue)
        {
            new Web2SCP.OeSalesOrderDAL().Delete(dbOrgWebReadCon, dbOrgWebWriteCon, dbCon, strKeyValue);            
        }
    }
}